package com.asm.repository;

import com.asm.entity.sys.SpotTag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SpotTagRepository extends JpaRepository<SpotTag,Long> {

    @Query("select c from SpotTag c where c.isDel=false ")
    Page<SpotTag> findAll(PageRequest of);
}
